﻿using Model;
using Model.DTO;

namespace IBLL
{
    public interface HouseNumIBLL
    {
        /// <summary>
        ///添加
        /// </summary>
        /// <param name="h"></param>
        /// <returns></returns>
        Task<int> AddHouseNum(HouseNum h);
        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        IQueryable<HouseDTO> Show(string? name,DateTime? d1,DateTime? d2);
        /// <summary>
        /// 下架
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> UpdateState(int id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="h"></param>
        /// <returns></returns>
        Task<int> Update(HouseNum h);
        /// <summary>
        /// 反添
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        HouseNum Fan(int id);
        /// <summary>
        /// 导入
        /// </summary>
        /// <param name="h"></param>
        /// <returns></returns>
        Task<int> AddRange(List<HouseNum> h);
        /// <summary>
        /// 导出
        /// </summary>
        /// <returns></returns>
        IQueryable<HouseNum> GetHouseNums();
    }
}
